package com.simtop.service.impl;

import com.simtop.dao.OperateDao;
import com.simtop.pojo.Operate;
import com.simtop.service.OperateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lvyongwei
 */
@Service
public class OperateServiceImpl implements OperateService {

    @Autowired
    private OperateDao operateDao;

    @Override
    public boolean insertOperate(Operate operate) {
        return operateDao.insertOperate(operate);
    }

    /**
     * 获取日志信息
     * @param operate
     * @return
     */
    @Override
    public List<Operate> getOperate(Operate operate) {
        return operateDao.getOperate(operate);
    }
}
